<?xml version="1.0"?> 
<xsl:stylesheet 
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0"> 
  <xsl:output method="html"/> 
 
  <xsl:template match="/r/model"> 
	
	<table width="400px">
		<input type="hidden" name="id" id="id" value="{@id}" />
		<tr>
	        <td width="35%">Name:</td>
	        <td width="65%"><input id="name" name="name" value="{@name}"/></td>
	    </tr>
	    <tr>
	        <td>Author:</td>
	        <td><input id="author" name="author" value="{@author}"/></td>
	    </tr>
	    <tr>
	        <td>Comment:</td>
	        <td><textarea id="comments" name="comments" col="60" row="5">.<xsl:value-of select="./comments" /></textarea></td>
	    </tr>
	    <tr>
	        <td>Insert new elements:</td>
	        <td>
	        	Types:
	        	<ul>
	        		<li><a href="javascript:createClass('-1')">Class</a></li>
	        		<li><a href="javascript:createEnumeration('-1')">Enumeration</a></li>
	        		<li><a href="javascript:createPrimitiveType('-1')">PrimitiveType</a></li>
	        	</ul>
	        	<br />
	        	<a href="javascript:createPackage('-1')">Package</a><br />
	        	<a href="javascript:createComment('-1')">Comment</a><br />
	        	<a href="javascript:createTag('-1')">Tag</a><br />
			</td>
	    </tr>
	    <tr>
	        <td>Export:</td>
	        <td><a href="javascript:exportModelToXMI()">XMI</a></td>
	    </tr>
	    <tr>
	        <td colspan="2" align="center"><button onclick="javascript:saveModel()">Save</button></td>
	    </tr>
	</table>
	</xsl:template>  
</xsl:stylesheet> 
